cache mapping functions